
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="<?= base_url() ?>assets/style/main.css" media="screen,projection"/>
    </head>
    <body>
        <div id="content">
            <div id="top">
                <div id="learning_path_information">
                    <h2><?php echo $tieu_de_lo_trinh; ?></h2>
                    <span class="learning_path_description">
                        <?php echo $noi_dung_tieu_de; ?>
                    </span>
                </div>
                <div id="learning_path_functions">
                    <input type="button" value="Xây dựng kế hoạch" />
                    <br/>
                    Đánh giá: <?php echo $danh_gia; ?> <img src="rating.gif" alt="4.5 sao" />
                    <br/>
                    Thảo luận: <?php echo $thao_luan ?><input type="button" value="Xem bình luận" />
                </div>
            </div>
            <div id="bottom">
                <div id="learning_path_content">
                    <?php foreach ($cap_hoc as $cap_hoc_item): ?>
                        <div class="step">
                            <h3><?php echo $cap_hoc_item['tieu_de']; ?></h3>
                            <span class="step_description">
                                <?php echo $cap_hoc_item['noi_dung'] ?>
                            </span>
                            <div class="learning_action">
                                <?php foreach ($cap_hoc_item['hoat_dong'] as $hoat_dong_item): ?>
                                    <ul>
                                        <li>ĐỌC: <?php echo $hoat_dong_item['doc'] ?></li>
                                        <li>XEM: <?php echo $hoat_dong_item["xem"] ?></li>
                                        <li>THAM KHẢO:
                                            <?php foreach ($hoat_dong_item['tham_khao'] as $tham_khao_item): ?>
                                                <ul>
                                                    <li><?php echo $tham_khao_item['tieu_de'] ?></li>
                                                </ul>
                                            <?php endforeach; ?>
                                        </li>
                                    </ul>
                                <?php endforeach; ?>
                            </div>
                        </div>
                    <?php endforeach; ?>
                    <div id="supporting_boxs">
                        <div class="box">
                            <div class="box_title">Tóm tắt nội dung</div>
                            <div class="box_content">
                                <ul>
                                    <?php foreach ($cap_hoc as $cap_hoc_item): ?>
                                        <li><?php echo $cap_hoc_item['tieu_de']; ?></li>
                                    <?php endforeach; ?>
                                </ul>
                            </div>
                        </div>
                        <div class="box">
                            <div class="box_title">Thông tin</div>
                            <div class="box_content">
                                <ul>
                                    <li>Phiên bản: <?php echo $phien_ban; ?><br/>(<a <?php echo 'href="' . $lich_su_thay_doi . '"'; ?>>Xem lịch sử thay đổi</a>)</li>
                                    <li>Người tạo: <a <?php echo 'href="' . $lien_ket_nguoi_tao . '"'; ?>><?php echo $nguoi_tao; ?></a></li>
                                    <li> Đóng góp
                                        <ul>
                                            <?php foreach ($dong_gop as $dong_gop_item): ?>
                                                <li><a <?php echo 'href="' . $dong_gop_item['lien_ket'] . '"'; ?>><?php echo $dong_gop_item['ten']; ?></a></li>
                                            <?php endforeach; ?>
                                        </ul>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="box">
                            <div class="box_title">Chủ đề</div>
                            <div class="box_content">
                                <table>
                                    <?php foreach ($chu_de as $chu_de_item): ?>
                                        <tr>
                                            <td><a <?php echo 'href="' . $chu_de_item['link_chu_de'] . '"'; ?>><?php echo $chu_de_item['ten_chu_de']; ?></a></td>
                                            <td><div class="tag_number"><?php echo $chu_de_item['so_luong_chu_de'] ?></div></td>

                                        </tr>
                                    <?php endforeach; ?>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
